<?php

/**
 * @author toai9
 * @copyright 2011
 */

if(isset($_GET['mode'])&& $_GET['mode']=='detail'){
    $madanhmuc=$_GET['madanhmuc'];
    $masanpham=$_GET['masanpham'];
     $sql='select * from tbl_danh_muc_san_pham';
    $kq=tep_db_query($sql);
    $content='<div id="menu_left">
                    <h2>Danh Mục Sản Phẩm</h2>    ';
    while($item=tep_db_fetch_array($kq)){
        $content.='
            <div class="tendanhmuc"><a href="?page=sanpham&madanhmucsanpham='.$item['id'].'">'.$item['ten_danh_muc'].'</a></div>
        ';
        
            
    }
    $content.='</div>';
    $sql='select * from tbl_san_pham where id='.$masanpham;
    $kq=tep_db_query($sql);
    $item=tep_db_fetch_array($kq);
                $content.='
                
                <div class="sanpham">
                            
                            <div class="show_sanpham" >
                                
                               <h1>'.$item['ten_san_pham'].'</h1>
                                
                                <img src="images/'.$item['hinh_anh'].'" style="width:250px; height:250px;margin: 0 50px;"/>
                             
                            </div>
                        </div>
                
                <div class="tabs">
              <!-- tabs -->
              <ul class="tabNavigation">
                <li><a href="#message">Hàm Lượng</a></li>
                <li><a href="#shareFile">Công Dụng</a></li>
                <li><a href="#arrange">Hướng dẫn Sử Dụng</a></li>
              </ul>
            
              <!-- tab containers -->
              <div id="message">
                <p>'.$item['ham_luong'].'</p>
              </div>
              <div id="shareFile">
                <p>'.$item['cong_dung'].'</p>
              </div>
              <div id="arrange">
                <p>'.$item['han_su_dung'].'</p>
              </div>
            </div>';
                
}
echo $content;
?>